package com.haiyangwang1.lesson7.ex2;



public enum SeasonDemo {
    SPRING("春天"),SUMMER("夏天"),AUTUMN("秋天"),WINTER("冬天");

    private  String desc;

    private  SeasonDemo(String desc){
        this.desc=desc;
    }

    public String getDesc() {
        return desc;
    }

    public static void main(String[] args) {
        SeasonDemo season = SeasonDemo.SPRING;
        System.out.println(season.name()+season.ordinal()+season.getDesc());
    }
}
